{extend name="layout_modal" /}
{block name="content"}
<!-- Content Header (Page header) -->
<section class="content" style="padding-top:0px;">
<div class="row">
  <div class="box">
    <!-- /.box-header -->
    <!-- form start -->
    <form role="form" action="{:url('data_update')}">
      <div class="box-body">
        <div class="form-group">
          <label for="exampleInputEmail1">账号类型</label>
          <input type="text" class="form-control" placeholder="账号类型" name="" value="{$authgroup.9.title}" readonly>
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">销售总监</label>
            <select class="form-control" name="puserid">
              <option value="">请选择</option>
              {volist name=":get_model_func('AdminUser', 'list_datad', ['puserid'=>$uinfo.userid, 'roleid'=>8], 1, 100, 'userid, realname', 'userid asc')" id="v"}
              <option value="{$v.userid}" {eq name="info.puserid" value="$v.userid"} selected {/eq}>{$v.realname}</option>
              {/volist}
            </select>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">姓名</label>
          <input type="text" class="form-control" placeholder="姓名" name="realname" value="{$info.realname}">
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">性别</label>
            <select class="form-control" name="gender">
              <option value="男" {eq name="info.gender" value="男"} selected {/eq}>男</option>
              <option value="女" {eq name="info.gender" value="女"} selected {/eq}>女</option>
            </select>
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">手机号</label>
          <input type="text" class="form-control" placeholder="手机号" name="phone" value="{$info.phone}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">邮箱</label>
          <input type="text" class="form-control" placeholder="邮箱" name="email" value="{$info.email}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">身份证号</label>
          <input type="text" class="form-control" placeholder="邮箱" name="idcard" value="{$info.idcard}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">微信号</label>
          <input type="text" class="form-control" placeholder="邮箱" name="weixin" value="{$info.weixin}">
        </div>
        <div class="form-group">
          <label for="exampleInputEmail1">社会身份</label>
          <select class="form-control" name="identity">
              <option value="">请选择</option>
              {volist name=":config('IDENTITY')" id="v"}
              <option value="{$key}" {eq name="info.identity" value="$key"} selected {/eq}>{$v}</option>
              {/volist}
            </select>
        </div>
      </div>
      <input type="hidden" name="userid" value="{$info.userid}">
      <!-- /.box-body -->
    </form>
  </div>
</div>
</section>
<!-- /.content -->
{/block}